package com.daoeping.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Bzn_certificateref entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bzn_certificateref", catalog = "daoeping")
public class Bzn_certificateref implements java.io.Serializable {

	// Fields

	private Integer id;
	private Bsc_certificate bsc_certificate;
	private Bzn_jobdescription bzn_jobdescription;

	// Constructors

	/** default constructor */
	public Bzn_certificateref() {
	}

	/** full constructor */
	public Bzn_certificateref(Bsc_certificate bsc_certificate,
			Bzn_jobdescription bzn_jobdescription) {
		this.bsc_certificate = bsc_certificate;
		this.bzn_jobdescription = bzn_jobdescription;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cretificate_id", nullable = false)
	public Bsc_certificate getBsc_certificate() {
		return this.bsc_certificate;
	}

	public void setBsc_certificate(Bsc_certificate bsc_certificate) {
		this.bsc_certificate = bsc_certificate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "jobdescription_id", nullable = false)
	public Bzn_jobdescription getBzn_jobdescription() {
		return this.bzn_jobdescription;
	}

	public void setBzn_jobdescription(Bzn_jobdescription bzn_jobdescription) {
		this.bzn_jobdescription = bzn_jobdescription;
	}

}